public class Test {
    public static void main(String[] args) {
        MyStack stack = new MyStack();
        stack.push(1);
        stack.push(2);
        stack.push(3);
//        int a = stack.pop();
//        System.out.println(a);
        stack.pop();
        System.out.println(stack.top());
    }
}
